package storageclass

import (
	"gitee/yinlai/kms-backend/controllers/storageclass"
	"github.com/gin-gonic/gin"
)

//// 实现添加集群
//func create(storageclassGroup *gin.RouterGroup) {
//	storageclassGroup.POST("/create", storageclass.Create)
//}
//
//// 更新集群
//func update(storageclassGroup *gin.RouterGroup) {
//	storageclassGroup.POST("/update", storageclass.Update)
//}
//
//// 删除
//func delete(storageclassGroup *gin.RouterGroup) {
//	storageclassGroup.POST("/delete", storageclass.Delete)
//}
//
//// 删除列表
//func deleteList(storageclassGroup *gin.RouterGroup) {
//	storageclassGroup.POST("/deleteList", storageclass.DeleteList)
//}
//
//// 获取
//func get(storageclassGroup *gin.RouterGroup) {
//	storageclassGroup.GET("/get", storageclass.Get)
//}

// 获取集群列表
func list(storageclassGroup *gin.RouterGroup) {
	storageclassGroup.GET("/list", storageclass.List)
}

func RegisterSubRouter(g *gin.RouterGroup) {
	storageclassGroup := g.Group("/storageclass")
	//create(storageclassGroup)
	//update(storageclassGroup)
	//delete(storageclassGroup)
	//get(storageclassGroup)
	list(storageclassGroup)
	//deleteList(storageclassGroup)
}
